//
//  ButtonCollectionViewCell.m
//  半糖
//
//  Created by RenShuang on 15/9/30.
//  Copyright (c) 2015年 shuang. All rights reserved.
//

#import "ButtonCollectionViewCell.h"

@implementation ButtonCollectionViewCell

- (void)dealloc
{
    [_titleLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        self.titleLabel.font = [UIFont systemFontOfSize:12.];
        [self.contentView addSubview:_titleLabel];
        [_titleLabel release];
        
        CGColorRef grly = [UIColor redColor].CGColor;
        [self.layer setBorderColor:grly];
        [self.layer setBorderWidth:0.3];

//        self.contentView.layer.masksToBounds = YES;
//        self.contentView.layer.cornerRadius = 5;
    }
    return self;
}

@end
